<?php defined('APP_PATH') or exit('Access Denied');?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>系统参数</title>
<link rel="stylesheet" type="text/css" href="vonuo/static/css/vonuo.css">
<script type="text/javascript" src="vonuo/static/js/jquery.min.js"></script>
<script type="text/javascript" src="vonuo/static/js/tablecolor.js"></script>
<script type="text/javascript">
function check(){
	if($.trim($("input[name='sitename']").val()) == ''){
		$("#need_sitename").html("<strong style='color:red;'>请填写站点名称！</strong>");
		$("input[name='sitename']").focus();
		return false;
	}else{
		$("#need_sitename").html("<strong style='color:red;'>√</strong>");
	}
	if($.trim($("input[name='siteurl']").val()) == ''){
		$("#need_siteurl").html("<strong style='color:red;'>请填写站点名称！</strong>");
		$("input[name='siteurl']").focus();
		return false;
	}else{
		$("#need_siteurl").html("<strong style='color:red;'>√</strong>");
	}
}
function setTab(name,cursel,n){
	for(i=1;i<=n;i++){
	var menu=document.getElementById(name+i);
	var con=document.getElementById("con_"+name+"_"+i);
	menu.className=i==cursel?"hover":"";
	con.style.display=i==cursel?"block":"none";
	}
}
</script>
</head>

<body>
<div class="gs_wraper gs_p_l0">
	<div class="title">
		<a href="javascript:;" id="one1" onclick="setTab('one',1,3)" class="hover">基本信息</a>
		<a href="javascript:;" id="one2" onclick="setTab('one',2,3)">高级设置</a>
		<a href="javascript:;" id="one3" onclick="setTab('one',3,3)">上传配置</a>
	</div>
	<form action="<?php echo spUrl('conf','doupd');?>" method="post" onsubmit="return check();">
	<div class="tab_box" id="con_one_1">
		<table width="100%" border="0" cellpadding="0" cellspacing="0" class="common_table">
			<tr><th width="100">参数说明</th><th width="200">参数值</th><th width="200">提示信息</th><th width="100">字段名</th></tr>
			<tr>
				<td>网站名称：</td>
				<td style="padding:5px 0 5px 15px;"><input name="sitename" value="<?php echo $conf['sitename'];?>" type="text" class="blue_input input_w_250" /></td>
				<td id="need_sitename">例如：华诺互动</td>
				<td>{sitename}</td>
			</tr>
			<tr>
				<td>网站网址：</td>
				<td style="padding:5px 0 5px 15px;"><input name="siteurl" value="<?php echo $conf['siteurl'];?>" type="text" class="blue_input input_w_250" /></td>
				<td id="need_siteurl">例如：http://www.vonuo.com</td>
				<td>{siteurl}</td>
			</tr>
			<tr>
				<td>联系人：</td>
				<td style="padding:5px 0 5px 15px;"><input name="linkman" value="<?php echo $conf['linkman'];?>" type="text" class="blue_input input_w_250" /></td>
				<td></td>
				<td>{linkman}</td>
			</tr>
			<tr>
				<td>固话：</td>
				<td style="padding:5px 0 5px 15px;"><input name="tel" value="<?php echo $conf['tel'];?>" type="text" class="blue_input input_w_250" /></td>
				<td></td>
				<td>{tel}</td>
			</tr>
			<tr>
				<td>传真：</td>
				<td style="padding:5px 0 5px 15px;"><input name="fax" value="<?php echo $conf['fax'];?>" type="text" class="blue_input input_w_250" /></td>
				<td></td>
				<td>{fax}</td>
			</tr>
			<tr>
				<td>手机：</td>
				<td style="padding:5px 0 5px 15px;"><input name="mobile" value="<?php echo $conf['mobile'];?>" type="text" class="blue_input input_w_250" /></td>
				<td></td>
				<td>{mobile}</td>
			</tr>
			<tr>
				<td>QQ：</td>
				<td style="padding:5px 0 5px 15px;"><input name="qq" value="<?php echo $conf['qq'];?>" type="text" class="blue_input input_w_250" /></td>
				<td></td>
				<td>{qq}</td>
			</tr>
			<tr>
				<td>邮箱：</td>
				<td style="padding:5px 0 5px 15px;"><input name="email" value="<?php echo $conf['email'];?>" type="text" class="blue_input input_w_250" /></td>
				<td></td>
				<td>{email}</td>
			</tr>
			<tr>
				<td>备案：</td>
				<td style="padding:5px 0 5px 15px;"><input name="icp" value="<?php echo $conf['icp'];?>" type="text" class="blue_input input_w_250" /></td>
				<td></td>
				<td>{icp}</td>
			</tr>
			<tr>
				<td>地址：</td>
				<td style="padding:5px 0 5px 15px;"><input name="address" value="<?php echo $conf['address'];?>" type="text" class="blue_input input_w_250" /></td>
				<td></td>
				<td>{address}</td>
			</tr>
			<tr class="bottom">
				<td colspan="4" align="right" valign="middle">
					<input type="submit" class="btn_wei f_left" value="确 定" />
					<input type="reset" class="btn_wei f_left" value="重 置" />
				</td>
			</tr>
  		</table>
	</div>
	<!--con_one_1 end-->
	<div class="tab_box" id="con_one_2" style="display:none">
		<table width="100%" border="0" cellpadding="0" cellspacing="0"   class="common_table">
			<tr><th width="100">参数说明</th><th width="200">参数值</th><th width="200">提示信息</th><th width="100">字段名</th></tr>
			<tr>
				<td>关闭网站：</td>
				<td><input name="close" type="radio" value="1" <?php if($conf['close']){?>checked<?php }?> class="m_lr_5"/><label>是</label><input name="close" type="radio" value="0" <?php if(!$conf['close']){?>checked<?php }?> class="m_lr_5"/><label>否</label></td>
				<td>是否关闭网站</td>
				<td>{close}</td>
			</tr>
			<tr>
				<td>提示信息：</td>
				<td style="padding:5px 0 5px 15px;"><textarea name="message" rows="4" cols="62"><?php echo $conf['message'];?></textarea></td>
				<td>关闭网站后前台显示的信息</td>
				<td>{message}</td>
			</tr>
			<tr>
				<td>关于我们：</td>
				<td style="padding:5px 0 5px 15px;"><textarea name="aboutus" rows="4" cols="62"><?php echo $conf['aboutus'];?></textarea></td>
				<td>用于前台调用</td>
				<td>{aboutus}</td>
			</tr>
			<tr>
				<td>统计代码：</td>
				<td style="padding:5px 0 5px 15px;"><textarea name="statistics" rows="4" cols="62"><?php echo $conf['statistics'];?></textarea></td>
				<td>可在CNZZ等网站免费申请</td>
				<td>{statistics}</td>
			</tr>
			<tr>
				<td>关键词：</td>
				<td style="padding:5px 0 5px 15px;"><textarea name="keywords" rows="4" cols="62"><?php echo $conf['keywords'];?></textarea></td>
				<td>多个关键词以半角逗号分隔</td>
				<td>{keywords}</td>
			</tr>
			<tr>
				<td>描述信息：</td>
				<td style="padding:5px 0 5px 15px;"><textarea name="description" rows="4" cols="62"><?php echo $conf['description'];?></textarea></td>
				<td>SEO描述信息</td>
				<td>{description}</td>
			</tr>
			<tr class="bottom">
				<td colspan="4" align="right" valign="middle">
					<input type="submit" class="btn_wei f_left" value="确 定" />
					<input type="reset" class="btn_wei f_left" value="重 置" />
				</td>
			</tr>
  		</table>
	</div>
	<!--con_one_2 end-->
	<div class="tab_box" id="con_one_3" style="display:none;">
		<table width="100%" border="0" cellpadding="0" cellspacing="0" class="common_table">
			<tr><th width="100">参数说明</th><th width="200">参数值</th><th width="200">提示信息</th><th width="100">字段名</th></tr>
			<tr>
				<td>缩略图宽度：</td>
				<td style="padding:5px 0 5px 15px;"><input name="thumbw" value="<?php echo $conf['thumbw'];?>" type="text" class="blue_input input_w_250" />px</td>
				<td id="need_thumbw">单位为像素</td>
				<td>{thumbw}</td>
			</tr>
			<tr>
				<td>缩略图高度：</td>
				<td style="padding:5px 0 5px 15px;"><input name="thumbh" value="<?php echo $conf['thumbh'];?>" type="text" class="blue_input input_w_250" />px</td>
				<td id="need_thumbh">单位为像素</td>
				<td>{thumbh}</td>
			</tr>
			<tr class="bottom">
				<td colspan="4" align="right" valign="middle">
					<input type="submit" class="btn_wei f_left" value="确 定" />
					<input type="reset" class="btn_wei f_left" value="重 置" />
				</td>
			</tr>
  		</table>
	</div>
	<!--con_one_3 end-->
	</form>
</div>
</body>
</html>